decode Image
Decodes a Camera X image stream object(ImageProxy) containing a Cronto or QR code.
To improve performance, it is recommended that, in the Image Analyzer, the output image format for Cronto codes is set to OUTPUT_IMAGE_FORMAT_RGBA_8888 while for QR codes it should be set to OUTPUT_IMAGE_FORMAT_YUV_420_888. This greatly cuts down on preprocessing and makes the scanning faster.
Warning: The method processes the image and this could take some time to achieve. The process time depends on the size of the input image, make sure input image is not too large. Also, the decode process should be performed on another thread so that the main thread isn't blocked.
Return
QRCodeScannerSDKDecodingResultData containing decoded data and image format
Parameters
ImageProxy object to decode
indicates type of the image. A mask with possible values: QRCodeScannerSDKConstants.CRONTO_CODE, QRCodeScannerSDKConstants.QR_CODE, or QRCodeScannerSDKConstants.CRONTO_CODE + QRCodeScannerSDKConstants.QR_CODE
Throws
in case the image could not be decoded